<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>我的首页 - 会员中心  - {$site_name}</title>
{include file="user_include" /}
</head>
<body class="center_body">
{include file="header" /}
<div class="container">
<div class="row">
  <div class="col-md-5 col-sm-6 col-xs-12 box-main-content">
  <div class="user-box clearfix mb20 user-info-left pb-0">
   <div class="col-md-4 col-sm-4 col-xs-12 user-center-avatar p-0">
   {if condition="($userinfo['user_viptime']) > time() "}
   <div class="user-vip"><i class="text-center icon iconfont text-color">&#xe67d;</i></div>
   {/if}
    <h2 class="text-center">
        <img class="img-circle" src="{:zanpian_avatar_url($userinfo,'big')}" align="会员首页" id="user-edit" data-url='{:zanpian_user_url('user/center/avatar')}'>
    </h2>
    </div>
    <div class="col-md-8 col-sm-8 col-xs-12  user-center-info">
     <p><strong class="mr10 text-overflow">{$userinfo.user_nickname}</strong><span></span><a class="text-color" href="{:zanpian_user_url('user/center/info')}">编辑资料</a></p>
          <p class="text-muted"><span>邮箱：</span><span id="email">{$userinfo.user_email|default='未绑定'}</span> {empty name="userinfo.user_email"}<button type="button" class="btn btn btn-warning btn-sm user-email-bind" id="user-edit" data-url='{:zanpian_user_url('user/center/bind',array('type'=>'email'))}' >绑定</button>{/empty}</p>
     <p class="text-muted"><span>手机：</span><span id="mobile">{$userinfo.user_mobile|default='未绑定'}</span>{empty name="userinfo.user_mobile"}<button type="button" class="btn btn btn-warning btn-sm user-mobile-bind" id="user-edit" data-url='{:zanpian_user_url('user/center/bind',array('type'=>'mobile'))}'>绑定</button>{/empty}</p>
     <p class="text-muted"><span>注册时间：</span>{$userinfo.user_reg_time|date='Y-m-d H:i:s',###}</p>
     <p class="text-muted"><span>最后登录：</span>{$userinfo.user_last_login_time|date='Y-m-d H:i:s',###}</p>
     <p class="text-muted"><span>最后登录IP：</span>{$userinfo.user_last_login_ip|long2ip}</p>      
    </div> 
    </div>
    
   </div>
   
    <div class="col-md-7 col-sm-6 col-xs-12 box-main-side"> 
    <div class="user-box clearfix mb20 user-info-right pb-0">
    <div class="user-center-title pl-0 pt-0"><h2 class="text-color">帐号信息：</h2></div>
    <p class="col-md-6 col-sm-6 col-xs-12 text-muted p-0"><span>用户组：</span><span {eq name="userinfo.id" value="$GLOBALS['config']['user']['sys']['user_reg_vip_group']"}class="text-color"{/eq} id="grouptitle">{$userinfo.title|default='默认会员'}</span>
    {eq name="userinfo.type" value="0"}
    {neq name="userinfo.id" value="$GLOBALS['config']['user']['sys']['user_reg_vip_group']"}
    <a href="javascript:;" class="btn btn-warning btn-sm" id="user-vip">购买VIP</a>
    {/neq}
    {/eq}
    </p>
    <p class="col-md-6 col-sm-6 col-xs-12 text-muted p-0"><span>我的积分：</span><span class="text-color" id="usescore">{$userinfo.user_score}</span>个 <a href="javascript:;" class="btn btn-warning btn-sm" id="user-payment">冲值积分</a></p>

        <p class="col-md-12 col-sm-12 col-xs-12 text-muted p-0"><span>VIP时间：</span>
        <span class="text-color" id="viptime">
        {gt name="userinfo.user_viptime" value="time()"}
        {$userinfo.user_viptime|default="未到期"|date='Y/m/d H:i:s',###}
        {else/}非会员{/gt}
        </span>
        {eq name="userinfo.type" value="0"}
      {eq name="userinfo.id" value="$GLOBALS['config']['user']['sys']['user_reg_vip_group']"}<a href="javascript:;" class="btn btn-warning btn-sm" id="user-vip">续费VIP时间</a>      {/eq}
     {/eq} </p>   
    <p class="col-md-3 col-sm-4 col-xs-4 text-muted p-0"><span>消费：</span><span class="text-color">{$count.score_count}</span>条</p>
    <p class="col-md-3 col-sm-4 col-xs-4 text-muted p-0"><span>充值：</span><span class="text-color">{$count.order_count}</span>条</p> 
 
    <p class="col-md-3 col-sm-4 col-xs-6 text-muted p-0"><span>评论：</span>{$count.comment_count}条</p>
    <p class="col-md-3 col-sm-4 col-xs-6 text-muted p-0"><span>收藏：</span>{$count.favorite_count}个</p>
    <p class="col-md-3 col-sm-4 col-xs-6 text-muted p-0"><span>订阅：</span>{$count.remind_count}个</p>
    <p class="col-md-3 col-sm-4 col-xs-6 text-muted p-0"><span>观看：</span>{$count.playlog_count}条</p>
    <p class="col-md-3 col-sm-4 col-xs-6 text-muted p-0"><span>留言：</span>{$count.gb_count}条</p>
    <p class="col-md-3 col-sm-4 col-xs-6 text-muted p-0"><span>私信：</span>{$count.msg_count}条</p>
    <div class="col-md-12 col-sm-12 col-xs-12 text-muted p-0">
    <div class="input-group p-0">
    <div class="input-group-btn p-0"><span class="btn text-left p-0" style="margin-left:0px;">推广连接：</span></div>
    <input readonly="readonly" class="form-control" value="{:zanpian_user_url('user/reg/index',array('uid'=>$userinfo['user_id']),true,true)}" size="70" style="p">
    </div>
    </div>    
    </div>
  </div>

  
<div class="clearfix"></div>

<div class="col-md-3 col-sm-4 col-xs-12 box-main-content">
{include file="left" /}
</div>

<div class="col-md-9 col-sm-8 col-xs-12 xs-bt-20 box-main-side">
<div class="user-box clearfix">
<div class="user-center-title pt-0 pl-0"><h2 class="text-color">最近动态</h2></div>
  <div class="comment-focus m-0" id="data">
     <div class="loading text-center">动态加载中...</div>
  </div>
</div>
</div>
</div>      
</div> 
<script type="text/javascript"> 
zanpian.user.get("{:zanpian_user_url('user/center/getall')}");
</script> 
{include file="user_footer" /}
</body>
</html>